Skip to main content

All Questions

Tagged with
3votes
2answers
3kviews

Replacing backslashes with forward slash within double quotes

I have some C source code which was originally developed on Windows. Now I want to work on it in Linux. There are tons of include directives that should be changed to Linux format, e.g: #include "..\...
Dumbo's user avatar
  • 1,586
2votes
2answers
4kviews

Remove comments in a C file [duplicate]

I am trying to remove comments from a file which may be in any part of a line and span multiple lines. struct my_struct{ field1; field2; /** comment 1 */ field3; /* comment 2 */ } ...
kris's user avatar
  • 209

close